<%@ taglib uri="/WEB-INF/struts-bean" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic" prefix="logic" %>

<html:form action="/sistema/relatorio/producao/porPeriodo" target="RELATORIO" method="post" focus="dataInicio">
	<table class="tbForm">
		<logic:messagesPresent message="false">
		<tr>
			<td colspan="2" class="erro">
				<bean:message key="formulario.informar.erros"/>
			</td>
		</tr>
		<tr>
			<td colspan="2" class="erro">
				<html:messages id="mensagem" message="false" property="falha">
					<bean:write name="mensagem"/>
				</html:messages>
			</td>
		</tr>
		</logic:messagesPresent>
		
		<tr>
			<td align="right" valign="top" ><bean:message key="formulario.datainicio"/>:</td>
			<td align="left">
				<html:text property="dataInicio" size="12" maxlength="10"/>
				 <html:img pageKey="sistema.ico.calendario" onclick="displayCalendar(document.forms[0].dataInicio,'dd/mm/yyyy',this)"/>
				<html:img pageKey="sistema.ico.dica" onclick="abrirJanelaDica('relatorio/producao/dataInicio.htm')"/>
				<logic:messagesPresent message="false">
					<html:messages id="mensagem" message="false" property="dataInicio">
						<br><span class="erro"><bean:write name="mensagem"/></span>
					</html:messages>
				</logic:messagesPresent>
			</td>
		</tr>
		<tr>
			<td align="right" valign="top" ><bean:message key="formulario.datatermino"/>:</td>
			<td align="left">
				<html:text property="dataTermino" size="12" maxlength="10"/>
				 <html:img pageKey="sistema.ico.calendario" onclick="displayCalendar(document.forms[0].dataTermino,'dd/mm/yyyy',this)"/>
				<html:img pageKey="sistema.ico.dica" onclick="abrirJanelaDica('relatorio/producao/dataTermino.htm')"/>
				<logic:messagesPresent message="false">
					<html:messages id="mensagem" message="false" property="dataTermino">
						<br><span class="erro"><bean:write name="mensagem"/></span>
					</html:messages>
				</logic:messagesPresent>
			</td>
		</tr>	
		<tr>
			<td>&nbsp;</td>
			<td align="left">
				<html:submit><bean:message key="sistema.botao.pesquisar"/></html:submit>
			</td>
		</tr>
	</table>
</html:form>